package ooday02;
/** 继承的演 */
public class ExtendsTest {
    public static void main(String[] args) {
        Student zs = new Student("张三",22,"深圳","jsd2302","001");
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();

        Teacher ls = new Teacher("李四",35,"南昌","20000");
        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.teach();

        Doctor ll = new Doctor("老六",18,"江西","看书");
        ll.eat();
        ll.sleep();
        ll.sayHi();
        ll.cut();
    }
}